package ExerciseFoure;

/*
 * 封装人的信息
 * 
 */
public class Person {

	private String name;
	private String gender;
	private int id;
	private String address;
	private int age;
	
	public Person()
	{
		
	}

	public Person(String name, String gender, int id, String address, int age) {
		this.name = name;
		this.gender = gender;
		this.id = id;
		this.address = address;
		this.age = age;
	}


	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}
	
	public void eat()
	{
		System.out.println("吃饭");
	}
	
	public void sleep()
	{
		System.out.println("睡觉");
	}
}
